package com.chanzany.interview_secondary.jvm.jvm_04_OOM;

public class StackOverflowErrorDemo {
    public static void main(String[] args) {
        System.out.println(stackOverflowError(10));
    }

    public static int stackOverflowError(int x){
        /*if (x<=0){
            return 0;
        }*/
        return x+stackOverflowError(x-1);

    }

}
